﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleRest.Core.Exceptions;

namespace SimpleRest.Core.Extensions.Exceptions
{
    public class DataAnnotationValidationException : WebExceptionBase
    {
        public DataAnnotationValidationException() { }
        public DataAnnotationValidationException(string message)
            : base(message) { }
        public DataAnnotationValidationException(string message, Exception ex)
            : base(message, ex) { }

        public override System.Net.HttpStatusCode StatusCode
        {
            get { return System.Net.HttpStatusCode.PreconditionFailed; }
        }

        public override string ErrorCode
        {
            get { return "1500.1"; }
        }
    }
}
